package org.example.java8;

/**
 * 接口实现类
 *
 * @author zhangpan
 * @since 2024/4/17 16:10
 */
public class NewInterfaceImpl implements NewInterface, New2Interface {

    /**
     * 必须重写 def() ，不然的话，编译的时候就会报错
     */
    @Override
    public void def() {
        System.out.println("NewInterfaceImpl.def()");
    }

    @Override
    public void f() {
        System.out.println("NewInterfaceImpl.f()");
    }

}
